/**
 * 
 * 广州锐鹏计算机科技有限公司（www.ruipengkj.com）
 * 
 * 
 * Copyright (c) 2011-2012 RUIPENGKJ.Co.Ltd. All rights reserved.
 * 
 * */
package com.ruipengkj.bean;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 说明：
 * Entity Name 商品库存
 * @Author：李智深
 * @Date：2012-03-14
 */
@Entity
@Table(name="ruipeng_tb_TMyCashCard")
public class TMyCashCard implements Serializable{

	private static final long serialVersionUID = 1L;

	private String MyCashCardID;//我的优惠券编号CHAR(15) PK
	
	private byte Status;//使用状态TINYINT 1为未使用 2为已使用
	
	private Date HappenTime;//赠送时间DATETIME
	
	private String OrderID;//相关订单CHAR(15)
	
	private String Sender;//送出人
	
	private TUser TUser;//用户
	
	private TCashCard TCashCard;//优惠劵
	
	private String GiftID;//优惠卷编号
	
	private String MySiteGiftID;//
	
	private int GiftCount;//赠送优惠卷数量

	@Id
	@Column(name = "MyCashCardID", length=15)
	public String getMyCashCardID() {
		return MyCashCardID;
	}

	public void setMyCashCardID(String myCashCardID) {
		MyCashCardID = myCashCardID;
	}

	@Column(name = "Status")
	public byte getStatus() {
		return Status;
	}

	public void setStatus(byte status) {
		Status = status;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "HappenTime", nullable = false, length = 19)
	public Date getHappenTime() {
		return HappenTime;
	}

	public void setHappenTime(Date happenTime) {
		HappenTime = happenTime;
	}

	@Column(name = "OrderID", length=15)
	public String getOrderID() {
		return OrderID;
	}

	public void setOrderID(String orderID) {
		OrderID = orderID;
	}

	@Column(name = "Sender", length=15)
	public String getSender() {
		return Sender;
	}

	public void setSender(String sender) {
		Sender = sender;
	}
	@ManyToOne
	@JoinColumn(name="UserID")
	public TUser getTUser() {
		return TUser;
	}

	public void setTUser(TUser tUser) {
		TUser = tUser;
	}
	@ManyToOne
	@JoinColumn(name="CardID")
	public TCashCard getTCashCard() {
		return TCashCard;
	}

	public void setTCashCard(TCashCard tCashCard) {
		TCashCard = tCashCard;
	}
	@Column(name = "GiftID", length=15)
	public String getGiftID() {
		return GiftID;
	}

	public void setGiftID(String giftID) {
		GiftID = giftID;
	}
	@Column(name = "MySiteGiftID", length=15)
	public String getMySiteGiftID() {
		return MySiteGiftID;
	}

	public void setMySiteGiftID(String mySiteGiftID) {
		MySiteGiftID = mySiteGiftID;
	}
	@Column(name = "GiftCount")
	public int getGiftCount() {
		return GiftCount;
	}

	public void setGiftCount(int giftCount) {
		GiftCount = giftCount;
	}
	
}
